import Mock from 'mockjs'
const id1 = [21, 22, 23]
const imageurl1 = [
    'src/assets/images/1.webp',
    'src/assets/images/2.webp',
    'src/assets/images/3.webp',
    'src/assets/images/4.webp'
]
export const BannerData = Mock.mock({
    bannerLists: [
        {
            id: id1[0],
            imgUrl: imageurl1[0],
        },
        {
            id: id1[1],
            imgUrl: imageurl1[1]
        },
        {
            id: id1[2],
            imgUrl: imageurl1[2]
        },
    ]

})

export const DetailData = Mock.mock({
    goodInfo: 
        {
            oldPrice: 2999,
            newPrice: 1999,
            mainTitle: '一往无前',
            subTitle: '【小米10周年】首次公开小米历史上不为人知的创业故事。',
            titleItems: [
                '① 小米官方授权传记',
                '② 雷军亲述小米热血10年',
                '③ 首次完整揭秘小米独特商业模式'
            ],
            uponTxt: '小米商城APP，积分升级兑神券 >',
            address: '广州市 海珠区',
            isHasGood: '有现货',
            serviceProtec: [
                '小米自营',
                '小米发货',
                '7天无理由退换货'
            ],
            goodRecRate: '99.8%',
            recomkeywords: [
                '全部',
                '手感很好',
                '拍照漂亮',
                '外观漂亮',
                '屏幕很好',
            ],
            recomBoxItems: [
                {
                    avatar: 'src/assets/images/1.webp',
                    nickname: '孙尚香',
                    time: '2022-11-9',
                    contentTxt: '非常流畅，手感很好，很喜欢',
                    imgs: [
                        'src/assets/images/1.webp',
                        'src/assets/images/2.webp'
                    ],
                    zanCount:1
                },
                {
                    avatar: 'src/assets/images/2.webp',
                    nickname: '孙尚香',
                    time: '2022-11-9',
                    contentTxt: '非常流畅，手感很好，很喜欢',
                    imgs: [
                        'src/assets/images/1.webp',
                        'src/assets/images/2.webp'
                    ],
                    zanCount: 1
                },
                {
                    avatar: 'src/assets/images/3.webp',
                    nickname: '孙尚香',
                    time: '2022-11-9',
                    contentTxt: '非常流畅，手感很好，很喜欢',
                    imgs: [
                        'src/assets/images/1.webp',
                        'src/assets/images/2.webp'
                    ],
                    zanCount: 1
                },
            ]

            

        },
})

export const QueryOneData = Mock.mock({
    good:
    {
        goodsId:11,
        price: 1999,
        name: '一往无前 十周年图书',
        img: 'src/assets/images/1.webp',
    },
})